package com.gmrz.uas.plugin.provider;

/**
 * Created by gongyuqiang on 2017/5/25.
 */

import java.sql.Connection;
import java.sql.SQLException;

public interface ServiceProvider {

    /**
     * 获取uas业务数据库连接
     * @return
     */
    Connection getUasConnection(boolean autoCommit) throws SQLException;

    /**
     * 获取uas日志数据库连接
     * @return
     */
    Connection getUasLogConnection(boolean autoCommit) throws SQLException;

    /**
     * 生成唯一id
     * @return
     */
    String generateID();

    String toBase64String(byte[] data);

    String getRedisValue(String key);

    void setRedisValue(String key,int seconds,String value);
    void setrangeRedisValue(String key,String value);

    void deleteRedisValue(String s);
}
